import { parseStamp } from "@/utils/public.js";
// 值班人列表
export const columns_zhiban = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    align: "center",
    "min-width": "190px",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  }
];
// 已签到
export const columns_yiqiandao = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    "min-width": "190px",
    align: "center",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  },
  {
    prop: "signTime",
    label: "签到时间",
    align: "center"
  }
];
// 未签到
export const columns_weiqiandao = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    "min-width": "190px",
    align: "center",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  }
];
// 迟到
export const columns_chidao = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    "min-width": "190px",
    align: "center",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  },
  {
    prop: "signTime",
    label: "实际签到时间",
    align: "center"
  },
  {
    prop: "timeDiffStr",
    label: "迟到时间",
    align: "center"
  }
];
// 早退
export const columns_zaotui = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    "min-width": "190px",
    align: "center",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  },
  {
    prop: "signOutTime",
    label: "实际签退时间",
    align: "center"
  },
  {
    prop: "timeDiffStr",
    label: "早退时间",
    align: "center"
  }
];
// 缺勤
export const columns_queqin = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    "min-width": "190px",
    align: "center",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  }
];
// 请假
export const columns_qingjia = [
  {
    prop: "dutyDate",
    label: "日期",
    align: "center",
    render: (h, row) => {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD")}</span>;
    }
  },
  {
    prop: "shiftStartTime",
    label: "计划值班时间",
    align: "center",
    "min-width": "190px",
    render(h, row) {
      return <span> {parseStamp(new Date(row.dutyDate), "YYYY-MM-DD") + "\xa0\xa0".concat(row.shiftTime)}</span>;
    }
  },
  {
    prop: "dutyRoleName",
    label: "值班角色",
    align: "center"
  },
  {
    prop: "dutyPersonName",
    label: "姓名",
    align: "center"
  },
  {
    prop: "contact",
    label: "联系方式",
    align: "center"
  },
  {
    prop: "unitName",
    label: "所属部门",
    align: "center"
  },
  {
    prop: "effectRange",
    label: "请假原因",
    align: "center"
  }
];
